<?php
// Modul hien thoi la quan ly danh muc 
$_ISA_CURRENT_MODUL_CODE = "AF";
if(isset($_REQUEST['modal_dialog_mode'])){
	$_MODAL_DIALOG_MODE = $_REQUEST['modal_dialog_mode'];
}else{
	$_MODAL_DIALOG_MODE = 0;
}
if ($_MODAL_DIALOG_MODE==1){
	if(isset($_REQUEST['allow_editing_in_modal_dialog'])) {
		$v_allow_editing_in_modal_dialog = $_REQUEST['allow_editing_in_modal_dialog'];
	}else{
		$v_allow_editing_in_modal_dialog = 0;
	}
}else{
	$v_allow_editing_in_modal_dialog = 0;
}

if(isset($_REQUEST['fuseaction'])) {
	$fuseaction=$_REQUEST['fuseaction'];
}else{
	$fuseaction="$$$$$$";
}
if(isset($_REQUEST['allow_select'])) {
	$v_allow_select = true;
}else{
	$v_allow_select = false;
}
// Bien xac dinh xem NSD hien thoi co quyen xem hay khong?
$v_is_granted_view_list = true; 
// Lay thong tin nguoi dang nhap de hien thi tren man hinh
$v_af_id = "";
if(isset($_REQUEST['hdn_af_id'])){	
	$v_af_id = $_REQUEST['hdn_af_id'];
}
//Bien xac dinh xem NSD hien thoi co quyen CAPNHAT mot doi tuong khong
$v_is_granted_update = _is_on_menu(_CONST_ONEGATE_AF_UPDATE, $_SESSION['onegate_public_function_list'],$_SESSION['onegate_granted_function_list']);
//Bien xac dinh xem NSD hien thoi co quyen XOA mot doi tuong khong
$v_is_granted_delete = _is_on_menu(_CONST_ONEGATE_AF_DELETE, $_SESSION['onegate_public_function_list'],$_SESSION['onegate_granted_function_list']);
//Bien xac dinh xem NSD hien thoi co quyen XEM DANH MUC 
$v_is_granted_view = _is_on_menu(_CONST_ONEGATE_AF_VIEW, $_SESSION['onegate_public_function_list'],$_SESSION['onegate_granted_function_list']);
//Bien xac dinh xem NSD hien thoi co quyen DUYETmot doi tuong khong
$v_is_granted_approve = true;// _is_on_menu(_CONST_ONEGATE_AF_APPROVE, $_SESSION['onegate_public_function_list'],$_SESSION['onegate_granted_function_list']);

?>
<script language="JavaScript">
	_MODAL_DIALOG_MODE = "<?php echo $_MODAL_DIALOG_MODE;?>";
	_ALLOW_EDITING_IN_MODAL_DIALOG = "<? echo $v_allow_editing_in_modal_dialog;?>";
</script>